#ifndef DOPPLERGRPHICSITEMLINE_H
#define DOPPLERGRPHICSITEMLINE_H

#include "DopplerGraphicsItem.h"
#include <QColor>
#include <QRectF>

class DopplerLineItem : public DopplerGraphicsItem
{
public:
    enum LINE_MOVE_TYPE
    {
      LINE_MOVE_NO = 0 ,
      LINE_MOVE_VERTICAL ,
      LINE_MOVE_HORIZENTAL ,
      LINE_MOVE_ALL
    };
    DopplerLineItem(const QColor& cColor_);
    void SetMoveType(LINE_MOVE_TYPE eType_) ;
    void SetLineStyle(Qt::PenStyle eStype_) ;
    virtual void SetItemGeometry (QRectF& rect_);
private:
    QRectF boundingRect() const;
    QPainterPath shape() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *item, QWidget *widget);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event) ;
    void mousePressEvent(QGraphicsSceneMouseEvent *event);

    int m_nType   ;
    int m_eMoveType ;
    QRectF m_rect   ;
    QColor m_cColor ;
    Qt::PenStyle m_eStype ;

};

#endif // DOPPLERGRPHICSITEMLINE_H
